<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>会员卡详情</h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn btn-default" href="{:U('index')}">返  回</a>
        </div>
        <!-- 高级搜索 -->
        <div class="search-form fr cf">

        </div>
    </div>

    <!-- 会员卡详细数据列表 -->
    <div class="data-table table-striped">
        <table> 
            <tr>
                <th>会员卡编号</th>
                <td>{$data.cardNum}</td>
                <th>会员卡名称</th>
                <td>{$data.name}</td>
                <th>会员卡电话</th>
                <td>{$data.phone}</td>
                <th>会员卡地址</th>
                <td>{$data.address}</td>
                <th>会员等级</th>
                <td>{$data.level}</td>
                <th>账户金额</th>
                <td>{$data.amount}</td>
                <th>积分</th>
                <td>{$data.point}</td>
            </tr>
            <tr>
                <th>开卡门店</th>
                <td>{$data.openCardShopId}</td>
                <th>开卡时间</th>
                <td>{$data.openCardDate|time_format}</td>
                <th>过期时间</th>
                <td>{$data.outOfDate|time_format}</td>
                <th>开卡人</th>
                <td>{$data.createby}</td>
                <th>更新人</th>
                <td>{$data.updateby}</td>
                <th>更新时间</th>
                <td>{$data.updateat|time_format}</td>
                <th>状态</th>
                <td style='color:red;'>{$data.status|get_status_name}</td>
            </tr>
        </table>
    </div>

    <!-- 会员卡详细数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <th>发生时间</th>
            <th>会员卡号</th>
            <th>消费类型</th>
            <th>相关单号</th>
            <th>原金额</th>
            <th>发生金额</th>
            <th>最终金额</th>
            <th>备注事项</th> 
            </thead>
            <tbody>
            <notempty name="_list">
            <volist name="_list" id="vo">
                 
                <tr>
                    <td>{$vo.date|time_format}</td>
                    <td>{$data.cardNum}</td>
                    <td><eq name='vo.type' value='1'>消费</eq>  <eq name='vo.type' value='2'>充值</eq></td>
                    <td>{$vo.orderNum}</td>
                    <td>{$vo.originAmount}</td>
                    <td><eq name='vo.type' value='1'>-</eq>  <eq name='vo.type' value='2'>+</eq>{$vo.count}</td>
                    <td style='color:red;'>{$vo.amount}</td>
                    <td>{$vo.remark}</td> 
                </tr>
            </volist>
            <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
</block> 

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('SpMembercard/index')}');
    </script>
</block>
